import Vue from "vue";
import Vuex from "vuex";
import user from "./modules/user";
import getters from "./getters/index";
import createPersistedState from "vuex-persistedstate";

 
Vue.use(Vuex);
const store = new Vuex.Store({
  plugins: [
    createPersistedState({
      storage: window.sessionStorage
    })
  ],
  modules: {
    user,
  },
  getters
});

export default store;
